package Business;

public class PurchaseDetails_BS {


    private int purchaseId;
    private int productId;
    private String productName;
    private float price;
    private int quantity;
    private float subTotal;
    private float totalPrice =0;

    public PurchaseDetails_BS() {}
    public PurchaseDetails_BS(int productId, String productName, float price, int quantity) {
        this.productId = productId;
        this.productName = productName;
        this.price = price;
        this.quantity = quantity;
    }

    public PurchaseDetails_BS(int purID, int pID, String pName, float pcdPrice, int pcdQuantity) {
        this.purchaseId = purID;
        this.productName = pName;
        this.price = pcdPrice;
        this.quantity = pcdQuantity;
    }

     public int getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(int purchaseId) {
        this.purchaseId = purchaseId;
    }

    public float getPrice() {
        return price;
    }
    public void setPrice(float price) {
        this.price = price;
    }

    public int getProductId() {
        return productId;
    }
    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }
    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getQuantity() {
        return quantity;
    }
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public float getSubTotal() {
        return this.subTotal = this.price * this.quantity;
    }
}
